﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AD3 RID: 2771
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MarkRelicFilterPlanScRsp : IMessage<MarkRelicFilterPlanScRsp>, IMessage, IEquatable<MarkRelicFilterPlanScRsp>, IDeepCloneable<MarkRelicFilterPlanScRsp>, IBufferMessage
	{
		// Token: 0x170022F5 RID: 8949
		// (get) Token: 0x06007BF9 RID: 31737 RVA: 0x0014AE11 File Offset: 0x00149011
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MarkRelicFilterPlanScRsp> Parser
		{
			get
			{
				return MarkRelicFilterPlanScRsp._parser;
			}
		}

		// Token: 0x170022F6 RID: 8950
		// (get) Token: 0x06007BFA RID: 31738 RVA: 0x0014AE18 File Offset: 0x00149018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MarkRelicFilterPlanScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170022F7 RID: 8951
		// (get) Token: 0x06007BFB RID: 31739 RVA: 0x0014AE2A File Offset: 0x0014902A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MarkRelicFilterPlanScRsp.Descriptor;
			}
		}

		// Token: 0x06007BFC RID: 31740 RVA: 0x0014AE31 File Offset: 0x00149031
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkRelicFilterPlanScRsp()
		{
		}

		// Token: 0x06007BFD RID: 31741 RVA: 0x0014AE44 File Offset: 0x00149044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkRelicFilterPlanScRsp(MarkRelicFilterPlanScRsp other) : this()
		{
			this.isMark_ = other.isMark_;
			this.isBatchOp_ = other.isBatchOp_;
			this.slotIndexList_ = other.slotIndexList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007BFE RID: 31742 RVA: 0x0014AE9D File Offset: 0x0014909D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkRelicFilterPlanScRsp Clone()
		{
			return new MarkRelicFilterPlanScRsp(this);
		}

		// Token: 0x170022F8 RID: 8952
		// (get) Token: 0x06007BFF RID: 31743 RVA: 0x0014AEA5 File Offset: 0x001490A5
		// (set) Token: 0x06007C00 RID: 31744 RVA: 0x0014AEAD File Offset: 0x001490AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsMark
		{
			get
			{
				return this.isMark_;
			}
			set
			{
				this.isMark_ = value;
			}
		}

		// Token: 0x170022F9 RID: 8953
		// (get) Token: 0x06007C01 RID: 31745 RVA: 0x0014AEB6 File Offset: 0x001490B6
		// (set) Token: 0x06007C02 RID: 31746 RVA: 0x0014AEBE File Offset: 0x001490BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsBatchOp
		{
			get
			{
				return this.isBatchOp_;
			}
			set
			{
				this.isBatchOp_ = value;
			}
		}

		// Token: 0x170022FA RID: 8954
		// (get) Token: 0x06007C03 RID: 31747 RVA: 0x0014AEC7 File Offset: 0x001490C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> SlotIndexList
		{
			get
			{
				return this.slotIndexList_;
			}
		}

		// Token: 0x170022FB RID: 8955
		// (get) Token: 0x06007C04 RID: 31748 RVA: 0x0014AECF File Offset: 0x001490CF
		// (set) Token: 0x06007C05 RID: 31749 RVA: 0x0014AED7 File Offset: 0x001490D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06007C06 RID: 31750 RVA: 0x0014AEE0 File Offset: 0x001490E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MarkRelicFilterPlanScRsp);
		}

		// Token: 0x06007C07 RID: 31751 RVA: 0x0014AEF0 File Offset: 0x001490F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MarkRelicFilterPlanScRsp other)
		{
			return other != null && (other == this || (this.IsMark == other.IsMark && this.IsBatchOp == other.IsBatchOp && this.slotIndexList_.Equals(other.slotIndexList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007C08 RID: 31752 RVA: 0x0014AF60 File Offset: 0x00149160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsMark)
			{
				num ^= this.IsMark.GetHashCode();
			}
			if (this.IsBatchOp)
			{
				num ^= this.IsBatchOp.GetHashCode();
			}
			num ^= this.slotIndexList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007C09 RID: 31753 RVA: 0x0014AFDF File Offset: 0x001491DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007C0A RID: 31754 RVA: 0x0014AFE7 File Offset: 0x001491E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007C0B RID: 31755 RVA: 0x0014AFF0 File Offset: 0x001491F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.IsMark)
			{
				output.WriteRawTag(24);
				output.WriteBool(this.IsMark);
			}
			if (this.IsBatchOp)
			{
				output.WriteRawTag(112);
				output.WriteBool(this.IsBatchOp);
			}
			this.slotIndexList_.WriteTo(ref output, MarkRelicFilterPlanScRsp._repeated_slotIndexList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007C0C RID: 31756 RVA: 0x0014B078 File Offset: 0x00149278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsMark)
			{
				num += 2;
			}
			if (this.IsBatchOp)
			{
				num += 2;
			}
			num += this.slotIndexList_.CalculateSize(MarkRelicFilterPlanScRsp._repeated_slotIndexList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007C0D RID: 31757 RVA: 0x0014B0E4 File Offset: 0x001492E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MarkRelicFilterPlanScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsMark)
			{
				this.IsMark = other.IsMark;
			}
			if (other.IsBatchOp)
			{
				this.IsBatchOp = other.IsBatchOp;
			}
			this.slotIndexList_.Add(other.slotIndexList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007C0E RID: 31758 RVA: 0x0014B159 File Offset: 0x00149359
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007C0F RID: 31759 RVA: 0x0014B164 File Offset: 0x00149364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.IsMark = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.IsBatchOp = input.ReadBool();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.slotIndexList_.AddEntriesFrom(ref input, MarkRelicFilterPlanScRsp._repeated_slotIndexList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002F58 RID: 12120
		private static readonly MessageParser<MarkRelicFilterPlanScRsp> _parser = new MessageParser<MarkRelicFilterPlanScRsp>(() => new MarkRelicFilterPlanScRsp());

		// Token: 0x04002F59 RID: 12121
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002F5A RID: 12122
		public const int IsMarkFieldNumber = 3;

		// Token: 0x04002F5B RID: 12123
		private bool isMark_;

		// Token: 0x04002F5C RID: 12124
		public const int IsBatchOpFieldNumber = 14;

		// Token: 0x04002F5D RID: 12125
		private bool isBatchOp_;

		// Token: 0x04002F5E RID: 12126
		public const int SlotIndexListFieldNumber = 15;

		// Token: 0x04002F5F RID: 12127
		private static readonly FieldCodec<uint> _repeated_slotIndexList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04002F60 RID: 12128
		private readonly RepeatedField<uint> slotIndexList_ = new RepeatedField<uint>();

		// Token: 0x04002F61 RID: 12129
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04002F62 RID: 12130
		private uint retcode_;
	}
}
